<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>商品相关</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
    <link rel="stylesheet" href="style.css">
</head>
<body onload="PR.prettyPrint()">
<nav class="navbar">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="index.html">
                享学课堂-小米商城项目
            </a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="https://github.com/YeDaxia/JApiDocs" target="_blank">GitHub</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">V1.0<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                            <li><a href="../mall-web-order.iml/index.html">mall-web-order.iml</a></li>
                            <li><a href="../pom.xml/index.html">pom.xml</a></li>
                            <li><a href="../src/index.html">src</a></li>
                            <li><a href="../target/index.html">target</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div class="book with-summary">
    <div class="book-summary">
<div class="search-box form-group">
    <input type="text" class="form-control" id="inputSearch" placeholder="搜索接口">
    <span class="glyphicon glyphicon-search form-control-feedback" aria-hidden="true"></span>
</div>
<div id="accordion" class="catalog">
        <div class="panel">
            <div id="heading0" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse0" aria-controls="collapse0">
                <i class="glyphicon glyphicon-align-justify"></i> 商品相关
            </div>
            <div id="collapse0" class="collapse in " aria-labelledby="heading0">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_GoodsContoller.html#searchList">
                        根据关键字搜索商品
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_GoodsContoller.html#detail">
                        商品详情
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_GoodsContoller.html#detailBySpecGoodsId">
                        商品详情
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_GoodsContoller.html#queryHotSelling">
                        查询热门商品
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading1" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse1" aria-controls="collapse1">
                <i class="glyphicon glyphicon-align-justify"></i> HomeController
            </div>
            <div id="collapse1" class="collapse " aria-labelledby="heading1">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_HomeController.html#getAllGroupItems">
                        首页获取分类
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_HomeController.html#getSliderList">
                        首页轮播图
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_HomeController.html#getSearchList">
                        首页查询框下拉提示
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_HomeController.html#getHotGoods">
                        首页大分类商品
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading2" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse2" aria-controls="collapse2">
                <i class="glyphicon glyphicon-align-justify"></i> 秒杀服务接口
            </div>
            <div id="collapse2" class="collapse " aria-labelledby="heading2">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_KillGoodsContoller.html#queryByPage">
                        查询秒杀商品
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_KillGoodsContoller.html#detail">
                        根据id查询秒杀商品详细信息
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_KillGoodsContoller.html#kill">
                        秒杀接口，这里对redis做了预减库存，并把秒杀了的用户做了标识缓存
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_KillGoodsContoller.html#submit">
                        秒杀订单提交，不直接修改数据库，而是把订单消息存mq，做异步处理
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading3" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse3" aria-controls="collapse3">
                <i class="glyphicon glyphicon-align-justify"></i> OrderController
            </div>
            <div id="collapse3" class="collapse " aria-labelledby="heading3">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_OrderController.html#save">
                        创建订单
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_OrderController.html#search">
                        分页查询订单
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_OrderController.html#search">
                        订单详情
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_OrderController.html#cancel">
                        取消订单
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_OrderController.html#confirmReceiveGoods">
                        确认收货
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_OrderController.html#queryOrderNum">
                        查询各状态的订单数
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading4" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse4" aria-controls="collapse4">
                <i class="glyphicon glyphicon-align-justify"></i> PayController
            </div>
            <div id="collapse4" class="collapse " aria-labelledby="heading4">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_PayController.html#wxPrePay">
                        微信支付
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_PayController.html#checkPay">
                        校验是否支付成功
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_PayController.html#orderPay">
                        插入支付订单数据
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading5" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse5" aria-controls="collapse5">
                <i class="glyphicon glyphicon-align-justify"></i> SearchController
            </div>
            <div id="collapse5" class="collapse " aria-labelledby="heading5">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_SearchController.html#getClafication">
                        
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading6" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse6" aria-controls="collapse6">
                <i class="glyphicon glyphicon-align-justify"></i> 购物车相关
            </div>
            <div id="collapse6" class="collapse " aria-labelledby="heading6">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#add">
                        添加到购物车
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#update">
                        修改购物车中的商品数量
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#remove">
                        根据specGoodsId删除购物车的内容
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#removeAll">
                        清空购物车
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#list">
                        查询购物车内容
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#getCheckedGoodsList">
                        查询购物车中已选中的商品列表
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#findBySpecGoodsId">
                        查询购物车
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_ShoppingCartContoller.html#updateStatus">
                        修改购物车状态
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading7" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse7" aria-controls="collapse7">
                <i class="glyphicon glyphicon-align-justify"></i> UserAddressController
            </div>
            <div id="collapse7" class="collapse " aria-labelledby="heading7">
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_UserAddressController.html#save">
                        保存用户地址
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_UserAddressController.html#remove">
                        删除用户地址
                    </a>
                    <a class="catalog-item" href="cn_enjoy_mall_web_controller_UserAddressController.html#list">
                        查询用的地址列表
                    </a>
            </div>
        </div>
</div>    </div>
    <div class="book-body">
        <div class="body-inner">
            <div class="book-header">
                <div class="d-flex justify-content-between">
                    <a class="header-menu toggle-catalog" href="javascript:void(0)"><i
                            class="glyphicon glyphicon-align-justify"></i> 目录</a>
                </div>
            </div>
            <div class="page-wrapper">
                <div class="page-inner">
                    <div class="action-list">
                        <div class="action-item">
<h2 id="searchList"><a href="#">根据关键字搜索商品 </a></h2>
<p><strong>请求URL</strong></p>
<p>
    <code>/api/goods/searchList</code>
        <span class="label label-default">GET</span>
</p>
        <p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>
                    <tr>
                        <td>type</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>brand</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>order</td>
                        <td>string</td>
                        <td>否</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>param</td>
                        <td>string</td>
                        <td>否</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>page</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>pageSize</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
	"code":"string",
	"msg":"string"
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/cn_enjoy_mall_web_controller_GoodsContoller_searchList_cn.enjoy.core.utils.response.HttpResponseBody.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/cn_enjoy_mall_web_controller_GoodsContoller_searchList_cn.enjoy.core.utils.response.HttpResponseBody.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                        <div class="action-item">
<h2 id="detail"><a href="#">商品详情 </a></h2>
<p><strong>请求URL</strong></p>
<p>
    <code>/api/goods/detail/{goodsId}</code>
        <span class="label label-default">GET</span>
</p>
        <p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>
                    <tr>
                        <td>goodsId</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
	"code":"string",
	"msg":"string"
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/cn_enjoy_mall_web_controller_GoodsContoller_detail_cn.enjoy.core.utils.response.HttpResponseBody.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/cn_enjoy_mall_web_controller_GoodsContoller_detail_cn.enjoy.core.utils.response.HttpResponseBody.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                        <div class="action-item">
<h2 id="detailBySpecGoodsId"><a href="#">商品详情 </a></h2>
<p><strong>请求URL</strong></p>
<p>
    <code>/api/goods/detailBySpecGoodsId/{specGoodsId}</code>
        <span class="label label-default">GET</span>
</p>
        <p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>
                    <tr>
                        <td>specGoodsId</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
	"code":"string",
	"msg":"string"
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/cn_enjoy_mall_web_controller_GoodsContoller_detailBySpecGoodsId_cn.enjoy.core.utils.response.HttpResponseBody.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/cn_enjoy_mall_web_controller_GoodsContoller_detailBySpecGoodsId_cn.enjoy.core.utils.response.HttpResponseBody.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                        <div class="action-item">
<h2 id="queryHotSelling"><a href="#">查询热门商品 </a></h2>
<p><strong>请求URL</strong></p>
<p>
    <code>/api/goods/hotSelling</code>
        <span class="label label-default">GET</span>
</p>
        <p><strong>请求参数</strong> <span class="badge">application/x-www-form-urlencoded</span></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>
                    <tr>
                        <td>showNum</td>
                        <td>int</td>
                        <td>否</td>
                        <td></td>
                    </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
	"code":"string",
	"msg":"string"
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/cn_enjoy_mall_web_controller_GoodsContoller_queryHotSelling_cn.enjoy.core.utils.response.HttpResponseBody.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/cn_enjoy_mall_web_controller_GoodsContoller_queryHotSelling_cn.enjoy.core.utils.response.HttpResponseBody.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
<script>

    var search_source_data = [
            {name: '商品相关.根据关键字搜索商品', url: 'cn_enjoy_mall_web_controller_GoodsContoller.html#searchList'},
            {name: '商品相关.商品详情', url: 'cn_enjoy_mall_web_controller_GoodsContoller.html#detail'},
            {name: '商品相关.商品详情', url: 'cn_enjoy_mall_web_controller_GoodsContoller.html#detailBySpecGoodsId'},
            {name: '商品相关.查询热门商品', url: 'cn_enjoy_mall_web_controller_GoodsContoller.html#queryHotSelling'},
            {name: 'HomeController.首页获取分类', url: 'cn_enjoy_mall_web_controller_HomeController.html#getAllGroupItems'},
            {name: 'HomeController.首页轮播图', url: 'cn_enjoy_mall_web_controller_HomeController.html#getSliderList'},
            {name: 'HomeController.首页查询框下拉提示', url: 'cn_enjoy_mall_web_controller_HomeController.html#getSearchList'},
            {name: 'HomeController.首页大分类商品', url: 'cn_enjoy_mall_web_controller_HomeController.html#getHotGoods'},
            {name: '秒杀服务接口.查询秒杀商品', url: 'cn_enjoy_mall_web_controller_KillGoodsContoller.html#queryByPage'},
            {name: '秒杀服务接口.根据id查询秒杀商品详细信息', url: 'cn_enjoy_mall_web_controller_KillGoodsContoller.html#detail'},
            {name: '秒杀服务接口.秒杀接口，这里对redis做了预减库存，并把秒杀了的用户做了标识缓存', url: 'cn_enjoy_mall_web_controller_KillGoodsContoller.html#kill'},
            {name: '秒杀服务接口.秒杀订单提交，不直接修改数据库，而是把订单消息存mq，做异步处理', url: 'cn_enjoy_mall_web_controller_KillGoodsContoller.html#submit'},
            {name: 'OrderController.创建订单', url: 'cn_enjoy_mall_web_controller_OrderController.html#save'},
            {name: 'OrderController.分页查询订单', url: 'cn_enjoy_mall_web_controller_OrderController.html#search'},
            {name: 'OrderController.订单详情', url: 'cn_enjoy_mall_web_controller_OrderController.html#search'},
            {name: 'OrderController.取消订单', url: 'cn_enjoy_mall_web_controller_OrderController.html#cancel'},
            {name: 'OrderController.确认收货', url: 'cn_enjoy_mall_web_controller_OrderController.html#confirmReceiveGoods'},
            {name: 'OrderController.查询各状态的订单数', url: 'cn_enjoy_mall_web_controller_OrderController.html#queryOrderNum'},
            {name: 'PayController.微信支付', url: 'cn_enjoy_mall_web_controller_PayController.html#wxPrePay'},
            {name: 'PayController.校验是否支付成功', url: 'cn_enjoy_mall_web_controller_PayController.html#checkPay'},
            {name: 'PayController.插入支付订单数据', url: 'cn_enjoy_mall_web_controller_PayController.html#orderPay'},
            {name: 'SearchController.', url: 'cn_enjoy_mall_web_controller_SearchController.html#getClafication'},
            {name: '购物车相关.添加到购物车', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#add'},
            {name: '购物车相关.修改购物车中的商品数量', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#update'},
            {name: '购物车相关.根据specGoodsId删除购物车的内容', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#remove'},
            {name: '购物车相关.清空购物车', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#removeAll'},
            {name: '购物车相关.查询购物车内容', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#list'},
            {name: '购物车相关.查询购物车中已选中的商品列表', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#getCheckedGoodsList'},
            {name: '购物车相关.查询购物车', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#findBySpecGoodsId'},
            {name: '购物车相关.修改购物车状态', url: 'cn_enjoy_mall_web_controller_ShoppingCartContoller.html#updateStatus'},
            {name: 'UserAddressController.保存用户地址', url: 'cn_enjoy_mall_web_controller_UserAddressController.html#save'},
            {name: 'UserAddressController.删除用户地址', url: 'cn_enjoy_mall_web_controller_UserAddressController.html#remove'},
            {name: 'UserAddressController.查询用的地址列表', url: 'cn_enjoy_mall_web_controller_UserAddressController.html#list'},
    ];



    $('.toggle-catalog').click(function () {
        $('.book').toggleClass('with-summary');
    });

    $('#inputSearch').autocomplete({hint: false}, [
        {
            source: function (query, callback) {
                var result = [];
                for(var i = 0; i !== search_source_data.length; i++){
                    if(search_source_data[i].name.indexOf(query) !== -1){
                        result.push(search_source_data[i]);
                    }
                }
                callback(result);
            },
            displayKey: 'name',
            templates: {
                suggestion: function (suggestion) {
                    return suggestion.name;
                }
            }
        }
    ]).on('autocomplete:selected', function (event, suggestion, dataset, context) {
        self.location = suggestion.url;
    });
</script>
</body>
</html>